export type IUserInfo = {
  admin: string | null;
  createdAt: string;
  updatedAt: string;
  id: null;
  remark: null;
  role: string;
  // tenant: ITanant;
  tenant: ITenant;
  wechat: IWechat;
  avatar: string;
  bloodPressureDbp: string;
  bloodPressureSbp: string;
  bmi: string;
  fastingBloodGlucose: string;
  ldlCholesterol: string;
  uricAcid: string;
  isAdmin: boolean;
  isSuperAdmin: boolean;
  knowledgePoints: number;
  labels: any[];
  nickname: string;
  phone: string;
  healthPoints: number;
};

export type ITenant = {
  code: string;
  id: number;
  name: string;
};

export type ITanant = {
  aboutUs: string;
  address: string;
  avatar: string;
  code: string;
  contact: string;
  createdAt: string;
  email: string;
  expireTime: string;
  id: number;
  name: string;
  phone: string;
  remark: string;
  servicePhone: string;
  status: number;
  updatedAt: string;
  workTime: string;
};

export type IWechat = {
  id: number;
  avatar: string;
  createdAt: string;
  updatedAt: string;
  openid: string;
  phone: string;
  status: number;
  unionid: string;
  nickname: string;
};

export type IUpdateUserReq = {
  nickname?: string | null;
  avatar?: string | null;
  health_points?: number | null;
  bmi?: number | null;
  bloodPressureSbp?: number | null;
  bloodPressureDbp?: number | null;
  fastingBloodGlucose?: string | null;
  ldlCholesterol?: string | null;
  uricAcid?: string | null;
};
